export default {
    state: {
        user:{
            token: '',
            account: '',
            cartNum:'',
            price:'',
            sum:0,
        }
        
        
    },
    mutations: {
        
        setAccount(state, account) {
            state.account = account
        },
        setToken(state, token) {
            state.token = token
            
        },
        setcartNum(state,cartNum){
            state.cartNum = cartNum
        },
        setcartTrue(state,sum){
            state.sum = sum
        }
    }
}